#ifndef PERSONDATABASE_H
#define PERSONDATABASE_H

#include "Database.h"

#include <QString>

class PersonInfo
{
public:
    PersonInfo();
    PersonInfo(const PersonInfo&);

    QString firstName, middleName, lastName;
    QString addressStreet, addressCity, addressState;

    int addressZip;

    QString lastVisit, birthDate;
};

class PersonDatabase : protected Database
{
public:
    PersonDatabase();

    PersonInfo getInfo(int userId);
    bool addPerson(PersonInfo *info, int userId);

private:
    void initDatabase();
};

#endif // PERSONDATABASE_H
